

package ProOF.apl.problems.real;

import ProOF.opt.abst.problem.meta.codification.Codification;

/**
 *
 * @author 
 */
public class RealCodification extends Codification<RealProblem, RealCodification>{
	public double x[];

    public RealCodification( int dimension ) {
        x = new double[dimension];
    }
    
	@Override
	public void Copy(RealProblem prob, RealCodification source) throws Exception {
		System.arraycopy(source.x, 0, x, 0, x.length);
	}

	@Override
	public RealCodification New(RealProblem prob) throws Exception {
		RealCodification codif = new RealCodification(prob.func.dimension());
		return codif;
	}
}
